//
//  MMTabBarVC.swift
//  movieInfo
//
//  Created by zhangkai on 2023/5/8.
//

import UIKit

class MMTabBarVC: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        UITabBar.appearance().tintColor = .systemGreen
        UITabBar.appearance().backgroundColor = .secondarySystemBackground
        
//        TMHomeVC
        let homeVC = TMHomeVC()
        homeVC.title = "Home"
        let tvImage = UIImage(systemName: "tv")
        homeVC.tabBarItem = UITabBarItem(title: "Home", image: tvImage, tag: 0)
        let newhomeVC = UINavigationController(rootViewController: homeVC)
        
        
        
        
        let popularVC = PopularVC()
        popularVC.title = "Popular"
        let tvImag1e1 = UIImage(systemName: "chart.bar.xaxis")
        popularVC.tabBarItem = UITabBarItem(title: "Popular", image: tvImag1e1, tag: 1)
        let newsetVC11 = UINavigationController(rootViewController: popularVC)
        
        
        
//        chart.line.uptrend.xyaxis
//
        
        
        
        let riliVC = calendarVC()
        riliVC.title = "Calendar"
        let tvImag1e = UIImage(systemName: "calendar.badge.clock.rtl")
        riliVC.tabBarItem = UITabBarItem(title: "Calendar", image: tvImag1e, tag: 2)
        let newsetVC1 = UINavigationController(rootViewController: riliVC)
        
        
        let setVC = MMSetUpVC()
        setVC.title = "Set up"
//        let tvImage = UIImage(systemName: "tv")
        setVC.tabBarItem = UITabBarItem(tabBarSystemItem: .contacts, tag: 3)
        let newsetVC = UINavigationController(rootViewController: setVC)
        
        
        
        
        viewControllers = [newhomeVC,newsetVC11,newsetVC1,newsetVC]

        // Do any additional setup after loading the view.
    }
    
    
    func getinfo(){
        
        
        
    }
    

      
}
